package org.lib.adapter.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

import lombok.extern.slf4j.Slf4j;

@EnableFeignClients(basePackages = {"org.lib"})
@SpringBootApplication(scanBasePackages = {"org.lib"})
// 下面两个注解 和 上面一个等效
// basePackages 不能只是 org.lib.data.user.api，否则，本项目的组件扫描不到，存在覆盖关系？
//@ComponentScan(basePackages = {"org.lib"})
//@SpringBootApplication
@Slf4j
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
		log.info("------服务已启动------");
	}

}
